* lisp/newcomment.el (comment-choose-indent): No space after BOL.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Mar 2012 02:46:31 +0000 (22:46 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Mar 2012 02:46:31 +0000 (22:46 -0400)
lisp/ChangeLog
lisp/newcomment.el

index 97247cf7db552a5b53a70a34340b30d6f08e657a..7088040f149a629d6224dd2ceb9682f29143c152 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * newcomment.el (comment-choose-indent): No space after BOL.
+
 2012-03-22  Sam Steingold  <sds@gnu.org>
 
        * window.el (switch-to-prev-buffer): Revert last patch because the
index ddb6c71d1a6c8ea5a4ae0f5f7d1c7888172a6da2..40bb36daf45927ee010e83c5c38cfc813d11da37 100644 (file)
@@ -587,7 +587,7 @@ Point is expected to be at the start of the comment."
                    (save-excursion (end-of-line) (current-column)))))
         (other nil)
         (min (save-excursion (skip-chars-backward " \t")
-                             (1+ (current-column)))))
+                             (if (bolp) 0 (1+ (current-column))))))
     ;; Fix up the range.
     (if (< max min) (setq max min))
     ;; Don't move past the fill column.